Resharper suggested code fixes