Add hearing for other commands
Improve cache/brain code