Wow, thanks very much anonymous. I did try that as a solution but stupid me was using an enum rather than an alias for the "shortcut" functions. Been staring at the problem for so long that I couldn't see the problem right in front of me! Appreciate the help greatly. Code now looks elegant again.