Extend code