Implement nthnext function.