Implement @simurai's suggestion.