Added plot interaction.
Moved some things around.