Fixed the modified flag.. Needs to be passed by reference.