Use tuples everywhere. Closes #66.