Add submit work function