Removed: unused reset_code check