Allow query params to act as function params