Removed unnecessary SideOnly and check for null block.