Changed optimization from -O3 to -O2