added print statement and check for work completion