Use err for all error variables