Added helper macros.

Not much more to say really!