Initial commit. Migrated code from other projects.