Vectorizing a few more terms