Scope generation.