Move descriptions of inner and outer loops to the adequate functions.