Added checkscript for debugging