Added socket communication