Basic export function works now.