Changing the static to local