Added scope variable initialization