Add output method and time execution time