Added a convenience method.