Add Edge Detection to Controls class