readVariable now supports threads