Add mode param to sub export call