Added 'debug' function
Added INLINABLE pragma for 'next'