Moved all the "magic numbers" into some centrally defined constants for the moment.

Signed-off-by: Paul G <p.ganssle@gmail.com>