Added sanity checks to prevent silly settings