Added macro for defining and calling method