Working case number generation.