Added message printing for debuggin