Moving the S3 Brain script because I'll need it later