Added socket interface.