Added socket library + delegate methods.