Vector.

Updated naming and maximize function.