Added next and prev methods.