Broke up main process into class methods.