hey drmbt, a while back i posted a basic example resembling the second sketch above, maybe it can help you too.