This won't be necessary if you split this outside of this function.