Cleaning up the header file and removing head_to_tail declaration