Make function scope variables local