Got rid of the magic numbers, introduced new, global, constants based config file (it will probably have to go too, but it will be easier to refactor from this).