Handling dynamic variables using cut_loops info