Add prelim export function for demo