John A's version of the template