That works great - no more switch statement :-)