Fixing scoping issue.