Added an insert method doing variable substitution with template - not ideal