Extract variables