Changing to local variables