Attempting to fix scratch code validation