Implemented get-next