Adding export function