Changed vector args to use inout; removes template bloat.