Changed connection type to avoid a nasty crash