After a contentious standoff between the state and federal government, California National Guard troops started training Thursday with the U.S. Customs and Border Patrol to be camera operators, radio dispatchers and other support roles. Some troops could start their new jobs as soon as Sunday or Monday.

In April, President Donald Trump ordered National Guard troops to deploy to the U.S.-Mexico border to help federal authorities combat illegal immigration and drug trafficking. But California has battled the administration over immigration issues.

Governor Jerry Brown ultimately agreed to contribute 400 troops to the National Guard's border deployment to help go after drugs, guns and criminal gangs — not immigrants.

The governor has said under the terms of the agreement the state reached with the Trump administration, California Guard cannot handle custody duties for anyone accused of immigration violations, build border barriers or have anything to do with immigration enforcement.

David Kim, an assistant chief patrol agent in Imperial Valley, says the National Guard troops will be in jobs that keep them out of contact with migrants, such as manning various surveillance platforms like camera systems, helping with maintenance, and conducting administrative support. This will free up his Border Patrol agents to focus on immigration law enforcement.