New scope solution

This was precisely the solution previously proposed here: