Reworked init file to support being included.