1. Refactored;
2. Bug fix for fdMax maintenance.