Correct scoping issue with rack usage detection.

Pull request to address issue #24