Refactor / documentation.