Added next and previous functions for moving around the list.