Added set_path method.