Working on socket interface.