Adds verification of scope
Adds scope building functionality