Why is this stored as an instance variable? That means that this code isn't thread safe, for no apparent reason.