What was consolidated in functioning empire?