Removed references to $base_dir. No longer needed.