Contains exceptions now
Add doc to function