Improved check program.