Reworked logging.
Removed unused static final ints.