@dragos, I didn't see a response to this comment.
I like mirco's solution. It is more future proof.