Make the script compatible with processing 2