Added Pi shutdown functionality.