Execute code after a scope finished compilation