Added macro to simplify task declaration