Added functions to control each type of block