Adding message queue class