Corrected problem which caused PI to hang