Implemented 10, 30 or 50 templates generating.