Simplify script.rb