Change build_x_array to one liners.