Passing cascade parameter to function, effectively breaking the model