Added initContextCallback