Split fetching of boxes into separate function; makes it easier for when more features are added.