Some optimization. Who knew printf was slow?