snap_in: failed to include code to associate agent with agency when improving style of code. Now included.