ca29537bbc
Generalized the background logic so it can be reused with mulitple entrypoint types
Generalized the background logic so it can be reused with mulitple entrypoint types