Add app.work function.