Resolved Resharper warnings