Implemented flash control and capture implementation