'Working' version of coroutines implemented.