Added sanity check for starting up the application.