Reworked dreams segment-maker.

Removed comments.