Prepare to use as a lib