Refactor /home/pi/param usage.