Finished implementing the vector extraction