Added in sobel assignment