Chnage of procedure name and additional checking
Insertion of try...except to procedure