use flattenToString for getCurrentTask as well
Use 17 instead of 0 for value of SCREEN_POWERED_OFF event