Implementation of next interface.