Added task logging