Perception code