Split up my code a bit more.

Moar functions.