Changed the init flow and logging.