Added constants.
Not super happy with the result but it is at least functionnal.