Added necessary classes for message handling.