Added 'startImmediately' support. Enabled it to run properly based on CLI arguments.