Added new export function