Migrated some base code over from the ieee repo