Changed the taskInfo to String to avoid serialization problesm