Added tolerance for variable settings