Better logging, cache printing issues fixed