All the garbage code for my disertation paper