Initialise context before using it.