Added custom throw routine to intercept errors