Added next and avg methods