Cleaned the code with ReSharper.