Optimizing and factoring code.