Added get message with timeout function to mq

Maintains backward compatibility