Dead functionalities.Fixed some errors.