Speed up run() by using sets for stopcodes and breakpoints