Refactoring + Simple Output for Function Use