Moved private functions to the bottom of the file. Replaced type with empty interface.