Add extension base code