Template structure setup