Added Ground Detection in Layout