Removed reading from main error channel in helper functions. Added a helper function for callback reading.