Merge functions with main

Only contained a single function