Funny, your second idea is actually something I was working on implementing, but I didn't finish it in time for the submission deadline.