Added getState method to Server