Added usage of backwards compatibility to PendingCommandFactory in
connection.