Using a switch statement to handle different messages
Started working on task message support