Reinserted halfstrip loop in simple_routine.