@AVIDDeveloper, I think that onAssetModified is too generic, how about onAssetContentModified?
As for the $con, you don't need it.