Move check variable to beginning of file.