Modified s to be a vector of length k