Cleanup aibrain.lua