Why do we need extra variables here? Seems like direct assignment may be clearer and shorter in this case. Same for line below.