Implement scope rules