Assign offsets, add printing functions.