Modified: Added if statement of checking add_path.