Better way of handling request parameters