Changed vectors to ArrayList because the thread locking wasn't needed.