Added API declarations to peek at head and tail.