Update loop.c