Preparing repository