Make more flexible, performant - pull info out of log for url