Added support to specify loadOnStartup.