Added api&privilege design.