There's a whole lot of chaining going on here and it looks extremely fragile.