Fixed some functions and configs.