Created a simple initializer to remove most of the work from main.