Use local variables for function params