Change variable to avoid hiding a global variable.
Change variable to avoid hiding a global variable.
Define resources correctly.