Setting up template