Move the callback to the final parameter and alter function invocations to reflect this change.