Added get_S function so it can be overridden to differentiate observations
from agent state.