Cope with running on up to 9999 processes