I think I got most of useless params. Also finished the trimGarbage method