Moved utility functions for functionality into utils module.
Removed unnecessary newline.