Initial socket communication code added