Added callback to stop() function.