Plug in the running application stuff.

It's not quite right, but it's a start.