Added first stage of brain compilation