Make getAvailable return a structure