This variable is never set to another value. Bug or just a redundant variable?