Read nested tasks properly

There wasn't a proper stack implementation before.