Add from_template