Change depreceated done() method to exec() method