Added support to read_only() in Query