Fixed hecke action.
Made out file name generation more robust.