Improve generation of magic numbers.