Implementation of contribute. Refs #1.