New setBlock method.