Created a message and factory generator. Fully working.