This is a heavily modified fork of ocharles/papers