Created functions for the head and abstracted the use into them