ENH: Adding template building