Implemented --resume feature.