Also this method seems very verbose. Is there a more compact way of doing what we want to do?