Added utility functions for running the tool in App.scala