Updating Arduino code to handle kicks better.