Change method to pass parameters.