Changed socket to actually passs a value