GATEDriver returns -1 on error