adding log traces to output stream for better flow indications.