Added update module.
Several changes.