I'm trying to figure out how avoid this temporary buffer.