Implemented an import function