Adding defer to documentation