Working on block logic