handleJob has to be defined before it is used the first time