Lots of changes, especially support for real-time quotes, and the script now runs indefinitely in a loop