From cognition to consciousness