Finish implementing message importing and exporting