Add optional and provided scope

Fix for #10 
That doesn't seem like it would fail to me, but worth checking perhaps.