Added extension method for anonymous use method.