Improve parameters usage of create_path function.