Adding  context to functions