Added code for the block classes and tabs.