Fixed all HLint warnings.