Add a new flag to specify if accounts manager should make a single pass or run in loop