New version of brain application (mega commit).