Raw export function working