Sinatra helpers