Adding methods to check server availability