Added some logging to the Model