Simplify block transfer code