Update brain API