Implemented a restart option and a limit on the vector size.