Added export method, not tested yet.