Also add logging functionality to stop and update functions