Removed Resharper warnings