Threadsafe should work, rudimentarily tested