Helper method to compressed Script