Added buildPreload script.