Consts stuff and cleaned up main output.