Finish first implementation of timedmsgqueue