New version. Added web functionality.