Ignore pycharm stuff
Minor perf improvement to strategy
OMG race conditions!
PS: Take a look at the comment I added in the code to better understand what was fixed