Add afdownsample script