Added export functionality (owyeah)