Added planter debug code