Bug fixes and enhancements to flash algorithms.