Moved debug runtime check to utils