Revert "Placed the GrabTag function in better location"

This reverts commit 405fdb1e36b8a67b72495074c232eb5b8672291f.