Reducing scripts