Add support of kill/resub of files.

Please review.