Where do these magic numbers come from? Perhaps they would be better as a #define.