Started work on export function