Code developed for t he NDW project