Added basic partners functionality.

Still need to write tests.