Settings code made kinda pretty