Not sure why this isn't already part of the API, it seems like a very natural instruction to have. Am I missing something?