Optimization of the smart project to run on the rpi