This two are so trivial, might as well define the functions here directly. The method names aren't great anyway.