Inspected to comply to Micsoroft All Rules of Code Analysis.