Use hash to get info from cursor
Remove debugging info