Modal callback now uses an object instead of a variable as callback parameters.