Implementing GET method.