Preparing lib