Added loop that updates subs every three seconds. Also doing commas instead of newlines in file.