Removing main from init file