Backup commit. Added list of max distance