All of my factoring stuff