Adopt some new features from Modfwango-Server.