Added scope reset to allow multiple calls