Added method handlerequest