Adding returning of 'next()' return value as per documentation.