Updates to module code.
http://chdk.setepontos.com/index.php?topic=847.msg118807#msg118807