This should be passed through append_sid()