Modified to use create_path