Update dll reference and delete old-style code.