Removed variable 'weight'