Add comments and exception handling.