Added a bunch of experimental code.