Added support for statuses other than 'available' and 'unavailable'.