I've run the code up until line 11 and got a returned value of 1, no errors. The only errors I've gotten have to do with missing objects since the only object in my scene is pCube1. Also, is there a reason behind the object names being hardcoded into this script?