Resolved issues with $scheduler instance used within multiple commands