Fix client's arguments
Move tries declaration to aviod infinite loop
Only prepare macro if job finished succesfully
Don't append multiple L1 attempts together