Adding host option and removing files after uploaded.