Added a recursive mode.