Remove appflood code
Fix reset code