Cleaned up resharper errors.