Cleans up parameters. Works fine.