Trimming this code