Need JSDoc for this function