Fixed settings and the ugly code