Added conditional for flash compilation