Attempted fix for Pi