Revised and documented the interface