added in condition for callback
Merge pull request #2 from ksmithut/develop

added in condition for callback