Tie main method into program