Added tenplate gen script.