Added the nessesary code for addnig direction in message