Some (outcommented) debug code for threading in sparrowNet