Implementing ServiceAvailable function