Fix condition.
Fix console output for errors.
Remove garbage collection call.
Add combined optimizations computation - local memory + vectorization.