Modified driving thing by putting a Thread.sleep command