Add logic for checking beta pattern in every section