Changed code that checks if WS can be accessed