Added functionality to the UI and Agent that will help to intergrate Crank into D-Crank

Yeah I think that's the more typical way, and easier to read.