Code refactoring. Adjust tasks of nameserver.