Option for disabling task loop for testing purposes