Cleaning up some code in troyolo.rb