Reformat, fix syntax errors, fix concurrency errors. Volatile arrays will not work.