Added a head function