Added perception-if defs (used to be in particular model files)