Added request handler and param parsing