Moving helper functions into a second file, abstracts some snake init functionality.