Added module interface. Closes #159.