Lloyd: Fixed overwriting issue.