Templates now inherited and nested correctly.