Locking down code for RPI logging