Re-enabled possibility of daemon, refactored callback parameters.