Added socket class.