Made resources independent of magic numbers.