Added ModelFactory generation.