Revert c523f38438d3148105c0933b4ad33ef154d4c810, there's a better way to do this.