Update dream code