Changed code on pi itself