Add functions parameters handling

Allows imported functions to retrieve query parameters