[Fix] Method signature fixed for file output only