Mainly just changing old deprecated functions to their newer counterparts
It now compiles but you still need to go through all the `//TODO:`s and update the values.