Added a head and tail call