Fixes for my git. Minor fixes for flash related functions