Runs the callback synchronously.