Attempting to solve issue where the program now takes 100% of the available resources on the test Raspberry PI.