Various helper methods

Could you clean up the whitespace between each line? (Some are tabs, some are spaces.)