First version
Added debug info