master: Added draft and history functions.