Added changes in block_create function to treat custom blocks case