Extracting sanity check script