Minor update
Added error checking for blocktypes