Rewrite module loading.
Update license headers