Adding block to compile I/O loops