Added code and modified license.