Implement sinatra helpers