Added an alternative approach to modify the scope object