Moved road edge det into control code