Removed printouts. And small bug that crept in when removing dets.