Update: Updated! Optimizations implemented, thanks for the feedback!