Fixing isDependent and idOfEvent
Adding scaling dependent availability