Script can optionally handle phaselists