Added distance class