Add var statements to scope variables