Added powerloss event