Added two convenience methods.