Updated to foreign id