Modified my script so it uses frame interval rather than frames per second. Should be easier to understand for most people