Setting up an analysis