The optional state callback needs to be added to the documentation. 