Update export function