Added debug mode and debug robot entry