Added charger events into animation code.