Implemented edge templates and related functionality.