Temp script to begin calcing Q-criterion