Implemented dream code.