Custom and non-custom versions of the get_size() functions