Please still fix the reaaaaaallly off indentation of this entire function.