Implement export function