Added junk token checking at the end of file