Added convenient function.