Removed unused var
#4 Flash detection