Prepare library.