Added new code for getting the status of the server