beforeStart and afterFinish moved to execute