Every time I think I know what's going on, suddenly there's another layer of complications.
https://stackoverflow.com/a/21137524/5100992