Adds generation of the MainFactory