Added only training and only training modes, read of model and logging.