Same for a number of other functions in this file