Added sinatra functionality