Fixed BUGgit add -u invokeMethod was outside of if statements and therefore simulateTimeStep was getting called twice simulatenously by two threads