Refactor out stack usage code, read stack in 4 byte chunks.