Refactorized usage function