Lifted the condition which limited code generation to only local agency