DLUG shared library example by Frank Atteln