Added missing extension method for issue #507