Updating spacing calculation