Moved most startup into main.rb