Added check for active flag in op defs
Added --period and --file cli switches
Missing callback execution
Console output tweak