Removed socket from method call