It’s nice when an old question on Stack Overflow is trivial to solve with new API. Progress! stackoverflow.com/a/32200627/2207249