Updated to check for div classes