Removed passing of the socket where it was no longer needed in the checking functions.