Fixing some code that doesn't have the right amount of parameters in the calls.