pi code for end detection
Merge remote-tracking branch 'origin/master'