Added a lot of Socket related code, for receiving external inputs.