Changed arguments for ranges check to (obj, user)