Renamed num_words to num_bytes as function size is stored in bytes not words