Optimize Next be continuing past function calls