Updated getFlashResult() function type.