Added automatic boilerplate code and updated the logging classes for snapshot.