added a hard 9999 limit to processing