Adding callback with time processed and cancelling process