Moved perception stuff to ed_perception