Use local variables where appropriate.