Changed the names of head and peak to head_key and peek_key