Trying to fix real time scripts