Now border detection working