Added API declarations to peek at head abd tail.