Add security check at the top of the file.