Added capture socket as per #97