Replaced many of the const with settings