Added an ability to specify a socket key.