Reverting to non-network usage of deques. Still uncertain why it does not work on Windows.