Add back depth limit in purify