Added extension method for convenience.