Move setting the next allowed hash entry into a function