Messenger function introduced

New messenger function introduced. Used to send messages to server at
preset interval.