Correctly pass registry when compiling graph arguments
Add comments