Work in progress (first sheet of template definition already working)