Added logging messages in createModel()