The function of mind is to be aware.
In this world, awareness takes the form of
perception, both inner and outer, and cognition.