Add debugging statements
Deserialize connections properly