Removed references to global flash object.