Comma or no comma before "only"?

There's no need for the comma because that would imply that you're starting a new phrase, but you're not. Also, when you say the sentence out loud, you don't pause after "purposes".