Implemented hello and goodbye messages