Initial preprocessing setup