Rewrite some of createNewTransaction method to use MessageQueue.