Corrected import function code