Fix the connect command.

It works but we need persistent storage based on Resource ID.