Changed the distance value to 3