I have a function that replay some steps from a .json file and another fuction which record those steps. I need the recordingScreen function to stop once the playActions fun