- Changed layer protocol functions into template parameters.