Added tick() call to runLoop for daemonized code