An error occurred
The plumbing is a little messy here, but I didn't see an obvious way to improve it without a lot of work.