Initial setup of externals and existing code