Refactor and add multiply by word size to get the usage in number of bytes instead of in number of words. Verified implementation by manual memory inspection in GDB.