Added code for get_empty_blk