Cognition and Environment: Functioning in an Uncertain World.