Is there a much less verbose, but ultimately more confusing way of doing this?