Added basic flash memory functionality.