Adds optimize() call and uses own config for site codes