New generic function scripts