Changed representation of availability schedule to hash.