Updated scope function