Removed PendingConnection class because it didn't worked as expected