Finally got context id working