Refactoring debug prints.
MULTIHREADED PUTS WORKS