Reset all changes I did, got lost somehow.
Added the isConnected comments.