Added default reference and schema buckets, and reference validation