Added where macro and associated functions.