Fixed create_connection() to match the emulated one.