Set up base template