Revised production.rb