Refactored to allow relative import paths.