Simplified the folding normalisation by creating renormalise_vector().