Cleans up block code.