Added signature for setBlock method