Modified for testN run.