Decided not to go to bed. Kept getting distracted by curiosity.
Optimized some small code with this commit.