Simple device improves performance during grid failure