More declarative code for subscription