This block might be a great candidate for a method.