Fix to different bugs. Changed percept request scheme.