Add logging. Closes #23