Add clean option and change file permission.