Combination of code from Distance-Bot and Camera-Bot