Fixed a major problem where it ran on high load every time. I feel really stupid now.