Altered:
- Found a couple places where I could optimize it a bit more.
Performance shouldn't be affected.