CLAMP and REPEAT modes now working. Window needs slight fix.