Export code automatically