Add compatibility for all code box version