Added features on ResourceAvaliablity.java