Massive overhaul of init file