This needs to be moved to an extension method.