Fixed so trim is working with Mr. Landgraf's help