Passing userdata to solver

Just make it be the parameters.