Support triggered actions.
Master counter is now a Long and can be accessed from the outside.