Moved Context methods definitions to cpp file