Unfinished smoothing functionality