Document callback parameters and throws