Moved initializations of scanners outside QR_RESET_CTX blocks
Merge branch 'develop/6' into develop/7
Fixed make runtime error if inputs are missing and record the query