Implemented flexOrder and changed spacing to flexSpacing