Static export function
Clean up unused stuff..