Clean up and refactor Preload.