Added xtension registration function