Added hooks for easier running on non-rpi hardware.