Temporary method that we hope to remove at some point. This method should generally only be called by machine generated code.