Adjusted app.rb