Added initial GET method and parameter encoding function