Script works regardless of user ruler preference