Use Flags instead of CuboidConnect