We can probably extract this to a helper method