Added my version of main I'm working on. Works for multiple threads running f1() when threads are added in main. The thread queue is messing up somehow when threads are added in f1().