Creating functions for the element types