Implement message queue creation function, create message queue generator.