Added util for setting scope for handlers