Finishing up foreign code loading