Added templates for remaining message types
Import functions directly from lodash