Bug fix - Check direction = "lend".