Added an extension method