Changed slider-determining algorithm, minor sanity improvements