First attempt at scoping
Finish scoping