Added a new export function