Added profiling, refactored connection factory to support new transcoder