New API internal function was missing variable