Works better when you use the parameters with the correct class