Added the placeBlock function