Modified warp function to run for every line