Added _ to private functions for convention. Removed some whitespace.