More refactoring, added an extra constructor for MessageResponse class.