Templated layer functionality.