Added extendSchema method