Last 2 params need to be applied to function