With exception handling