Fixed compiler warning: unused variable.