Fixed wrong dependencies being returned from imports.
Removed unnecessary debug information.