Added implementations for Tasks and generator