Reverse order and improve add repo steps