Alter trimming functionality.