Improved the FunctionController.Import action method