Implemented import function.