Simplify function scripts.