May be an improvement to declare these magic numbers as constants