Removed imports inside function code