Edited getHideBlocks method