Removed redundant code from server.rb