Added a comment explaining some vars I use throughout scope checking