Major DEC re-implementation