Use ON_TOP, ON_BOTTOM instead of magic numbers.