Bug fix: hashCode could be negative -> label was invalid
Added logs.
Rearranged logs.