Prepare configuration