onJobDone slot implemented, annotations added.